/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 价格走势表Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class PriceTrend extends DataEntity<PriceTrend> {
	
	private static final long serialVersionUID = 1L;
	private Integer productId;		// product_id
	private BigDecimal normalPrice;		// 当月销售价格
	private BigDecimal minPrice;		// 当月最低价
	private Integer minOrderId;		// 当月最低价对应订单号
	private BigDecimal maxPrice;		// 当月最高价
	private Integer maxOrderId;		// 当月最高价对应订单号
	
	public PriceTrend() {
		super();
	}

	//public ApiPriceTrend(String id){
	//	this.id = id;
	//}

	@NotNull(message="product_id不能为空")
	@ExcelField(title="product_id", align=2, sort=0)
	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	
	@ExcelField(title="当月销售价格", align=2, sort=1)
	public BigDecimal getNormalPrice() {
		return normalPrice;
	}

	public void setNormalPrice(BigDecimal normalPrice) {
		this.normalPrice = normalPrice;
	}
	
	@ExcelField(title="当月最低价", align=2, sort=2)
	public BigDecimal getMinPrice() {
		return minPrice;
	}

	public void setMinPrice(BigDecimal minPrice) {
		this.minPrice = minPrice;
	}
	
	@ExcelField(title="当月最低价对应订单号", align=2, sort=3)
	public Integer getMinOrderId() {
		return minOrderId;
	}

	public void setMinOrderId(Integer minOrderId) {
		this.minOrderId = minOrderId;
	}
	
	@ExcelField(title="当月最高价", align=2, sort=4)
	public BigDecimal getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(BigDecimal maxPrice) {
		this.maxPrice = maxPrice;
	}
	
	@ExcelField(title="当月最高价对应订单号", align=2, sort=5)
	public Integer getMaxOrderId() {
		return maxOrderId;
	}

	public void setMaxOrderId(Integer maxOrderId) {
		this.maxOrderId = maxOrderId;
	}
	
}